//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ww.springboot.boot.config;

import org.springframework.beans.factory.ObjectProvider;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;

@Configuration
@AutoConfigureAfter({RedisLockConfiguration.class})
public class LogisticsRedisAutoConfiguration {
    public LogisticsRedisAutoConfiguration() {
    }

    @Bean(
            name = {"logisticsRedis"}
    )
    @ConditionalOnMissingBean(
            name = {"logisticsRedis"}
    )
    public RedisUtils logisticsRedis(ObjectProvider<RedisTemplate<String, Object>> objectProvider) {
        RedisTemplate<String, Object> redisTemplate = (RedisTemplate) objectProvider.getIfAvailable();
        RedisUtils logisticsRedis = new RedisUtils(redisTemplate);
        return logisticsRedis;
    }
}
